package charpter11.lynx;

import java.util.ArrayList;
import java.util.Collection;
import java.util.LinkedList;
import java.util.Random;

public class Eleven {
	private static Collection<Object> fill(Collection<Object> collection){
		Random rt = new Random(47);
		for (int i= 0; i < 50; i++){
			collection.add(rt.nextInt(100));
		}
		
		return collection;
	}
	
	public static void main(String[] args){
		System.out.println(fill(new ArrayList<Object>()));
		System.out.println(fill(new LinkedList<Object>()));
	}
}
